import { _decorator, Component, Label, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('GameOverUI')
export class GameOverUI extends Component {
    @property(Label)
    historyScore:Label = null;
    @property(Label)
    currentScore:Label = null;

    start() {
    }

    showGameOverUI(heightScore:number,currentScore) {
        this.node.active = true;
        
        this.historyScore.string = heightScore.toString();
        this.currentScore.string = currentScore.toString();
    }
    
}

